package com.ym.medical.enums;


import com.ym.common.annotations.EnumDescription;
import com.ym.common.enums.UserUserTypeEnum;

/**
 * 用户类型
 */
public enum OrgSignEnum {

	//--------------------start-----------------

	/**
	 * 患者
	 */
	PATIENT("01", "患者"),
	/**
	 * 医生
	 */
	DOCTORS("02", "医生"),

	/**
	 * 系统
	 */
	SYSTEM("03", "系统"),

	//--------------------end-------------------
	;

	private String code;

	private String name;

	OrgSignEnum(String code, String name) {
		this.code = code;
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public String getName() {
		return name;
	}

	public static OrgSignEnum terminalCovert(UserUserTypeEnum userTypeEnum) {
		switch (userTypeEnum) {
			case DOCTOR:
				return OrgSignEnum.DOCTORS;
			case PATIENT:
				return OrgSignEnum.PATIENT;
			default:
				return null;
		}

	}

}
